/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "调度任务LOG",TableName = "EQU_COM_DEFINITION_TASK_LOG")]
    public partial class EQU_COM_DEFINITION_TASK_LOG:BaseEntity
    {
        /// <summary>
       ///路径
       /// </summary>
       [Display(Name ="路径")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MovePath_Id { get; set; }

       /// <summary>
       ///路径点
       /// </summary>
       [Display(Name ="路径点")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string MovePathSub_Id { get; set; }

       /// <summary>
       ///指令
       /// </summary>
       [Display(Name ="指令")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Command { get; set; }

       /// <summary>
       ///设备
       /// </summary>
       [Display(Name ="设备")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Equipment_Id { get; set; }

       /// <summary>
       ///来源
       /// </summary>
       [Display(Name ="来源")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Source { get; set; }

       /// <summary>
       ///Ip
       /// </summary>
       [Display(Name ="Ip")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string IpUrl { get; set; }

       /// <summary>
       ///执行开始时间
       /// </summary>
       [Display(Name ="执行开始时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ExecuteStart { get; set; }

       /// <summary>
       ///执行结束时间
       /// </summary>
       [Display(Name ="执行结束时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ExecuteEnd { get; set; }

       /// <summary>
       ///路径序号
       /// </summary>
       [Display(Name ="路径序号")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? SubPathNo { get; set; }

       /// <summary>
       ///任务类型
       /// </summary>
       [Display(Name ="任务类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string TaskType { get; set; }

       /// <summary>
       ///任务类型
       /// </summary>
       [Display(Name ="任务类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string EQUTask_Id { get; set; }

       /// <summary>
       ///任务No.
       /// </summary>
       [Display(Name ="任务No.")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string TaskNo { get; set; }

       /// <summary>
       ///工序
       /// </summary>
       [Display(Name ="工序")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string OperationName { get; set; }

       /// <summary>
       ///工单
       /// </summary>
       [Display(Name ="工单")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string OrderCode { get; set; }

       /// <summary>
       ///描述
       /// </summary>
       [Display(Name ="描述")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Description { get; set; }

       /// <summary>
       ///任务状态
       /// </summary>
       [Display(Name ="任务状态")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string Status { get; set; }

       /// <summary>
       ///刀库点
       /// </summary>
       [Display(Name ="刀库点")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string SHELVES_Id { get; set; }

       /// <summary>
       ///执行设备
       /// </summary>
       [Display(Name ="执行设备")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ActionEquipmentId { get; set; }

       /// <summary>
       ///执行路径
       /// </summary>
       [Display(Name ="执行路径")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ActionSubPathNo { get; set; }

       /// <summary>
       ///执行顺序
       /// </summary>
       [Display(Name ="执行顺序")]
       [DisplayFormat(DataFormatString="18,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? ActionSort { get; set; }

       /// <summary>
       ///程序
       /// </summary>
       [Display(Name ="程序")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ProgramId { get; set; }

       /// <summary>
       ///刀
       /// </summary>
       [Display(Name ="刀")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ToolId { get; set; }

       /// <summary>
       ///执行时间
       /// </summary>
       [Display(Name ="执行时间")]
       [Column(TypeName="int")]
       [Editable(true)]
       [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
       public int? ExecuteTaskDiffTime { get; set; }

       /// <summary>
       ///第二序
       /// </summary>
       [Display(Name ="第二序")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? SecornSeq { get; set; }

       /// <summary>
       ///时长
       /// </summary>
       [Display(Name ="时长")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string time { get; set; }

       /// <summary>
       ///加工中序号
       /// </summary>
       [Display(Name ="加工中序号")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? ProcessingNumber { get; set; }

       /// <summary>
       ///工单(是否当前设备执行工单)
       /// </summary>
       [Display(Name ="工单(是否当前设备执行工单)")]
       [MaxLength(10)]
       [Column(TypeName="nvarchar(10)")]
       [Editable(true)]
       public string IsCurrentOrderCode { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string CreateBy { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateOn { get; set; }

       /// <summary>
       ///更新人
       /// </summary>
       [Display(Name ="更新人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string UpdateBy { get; set; }

       /// <summary>
       ///更新时间
       /// </summary>
       [Display(Name ="更新时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? LastUpdateOn { get; set; }

       /// <summary>
       ///逻辑删除 0/不删除 1/已删除
       /// </summary>
       [Display(Name ="逻辑删除 0/不删除 1/已删除")]
       [Column(TypeName="bit")]
       [Editable(true)]
       public bool? IsDeleted { get; set; }

       /// <summary>
       ///Id
       /// </summary>
       [Key]
       [Display(Name ="Id")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid Id { get; set; }

       /// <summary>
       ///ComDefintion_TaskId
       /// </summary>
       [Display(Name ="ComDefintion_TaskId")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid ComDefintion_TaskId { get; set; }

       /// <summary>
       ///指令任务名
       /// </summary>
       [Display(Name ="指令任务名")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string ComDefintionTaskNameZH { get; set; }

       
    }
}